<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 16274
  Date: 2023/3/5
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
  <base href="${ctx}/">
  <meta charset="UTF-8">
  <title>修改用户</title>
  <link rel="stylesheet" href="assets/employee/css/add.css">
  <script src="assets/lib/jquery/jquery-3.6.3.min.js"></script>
  <script src="assets/lib/layer/layer.js"></script>
  <script src="assets/lib/laydate/laydate.js"></script>
  <script>
    const ctx = "${ctx}";
    const error ="${error}";
    const id = ${user.id};
  </script>
  <script src="assets/login/edit.js"></script>
</head>
<body>
<div class="container">
  <h1>修改个人信息</h1>
  <form  id="user-form" action="user/edit" method="post" >
    <div>
      <label for="">用户名</label>
      <input type="text" id="username"  name = "username" placeholder="请输入顾客编号，不可为空" value="${user.userName}"/>
    </div>
    <div>
      <label for="">旧密码</label>
      <input type="password" id="password" name = "password" />
    </div>
    <div>
      <label for="">新密码</label>
      <input type="password" id="newpwd"  name="newpwd"/>
    </div>
    <div>
      <label for="">确认密码</label>
      <input type="password" id="newpwd2"  name="newpwd2"/>
    </div>
    <div class="submit">
      <button id="update-btn" type="button">提交</button>
      <button type="reset">重置</button>
    </div>
  </form>
</div>
</body>
</html>
